package com.jasmine.bjstkserver.server.picture;


import com.jasmine.bjstkserver.server.picture.model.PictureReq;
import com.jasmine.bjstkserver.server.picture.model.PictureRes;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * @author : jasmineXz
 */
public interface PictureService {

    /** 列表 */
    List<PictureRes> findList(PictureReq pictureReq);

    /** 新增 */
    String insert(MultipartFile picture, String uploadPath, Integer folderId);

    /** 修改 */
    Integer update(PictureReq pictureReq) throws Exception;

    /** 将文件夹下的文件重置到未分类中 */
    Integer resetFolder(Integer userId, Integer folderId);

    /** 更换文件夹 */
    Integer changeFolder(PictureReq pictureReq);

    /** 删除 */
    Integer delete(Integer pictureReq, String url);




    /* ------------------- 统计 ------------------- */




    Map<String,Object> statistics(PictureReq pictureReq);
}
